Crate phonenumber
source ·Re-exports§
pub use crate::metadata::Metadata;
Modules§
- Country related types. Country related types.
- Phone number metadata, containing patterns, formatting and other useful data about countries and phone numbers.
Structs§
- A phone number carrier.
- A phone number extension.
- A formatter for a
PhoneNumber
. - The national number part of a phone number.
- A phone number.
Enums§
- Metadata loading errors.
- Formatting modes for phone number.
- Parsing errors.
- The phone number type.
- Possible outcomes when testing if a
PhoneNumber
is possible.
Functions§
- Create a new
Formatter
for the given phone number. - Create a new
Formatter
for the given phone number using the given metadata database. - Check if the phone number is valid.
- Check if the phone number is valid with the given
Database
. - Check if the provided string is a viable phone number.
- Parse a phone number.
- Parse a phone number using a specific
Database
.